home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / ksgrd / StyleSettings.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  2.1 KB  |  79 lines

  1. /*
  2.     KSysGuard, the KDE System Guard
  3.    
  4.     Copyright (c) 1999 - 2001 Chris Schlaeger <cs@kde.org>
  5.     
  6.     This program is free software; you can redistribute it and/or
  7.     modify it under the terms of version 2 of the GNU General Public
  8.     License as published by the Free Software Foundation.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  18.  
  19.     KSysGuard is currently maintained by Chris Schlaeger <cs@kde.org>.
  20.     Please do not commit any changes without consulting me first. Thanks!
  21.  
  22. */
  23.  
  24. #ifndef KSG_STYLESETTINGS_H
  25. #define KSG_STYLESETTINGS_H
  26.  
  27. #include <kdialogbase.h>
  28.  
  29. #include <qcolor.h>
  30.  
  31. class KColorButton;
  32.  
  33. class QListBoxItem;
  34. class QPushButton;
  35.  
  36. class StyleSettings : public KDialogBase
  37. {
  38.   Q_OBJECT
  39.  
  40.   public:
  41.     StyleSettings( QWidget *parent = 0, const char *name = 0 );
  42.     ~StyleSettings();
  43.  
  44.     void setFirstForegroundColor( const QColor &color );
  45.     QColor firstForegroundColor() const;
  46.  
  47.     void setSecondForegroundColor( const QColor &color );
  48.     QColor secondForegroundColor() const;
  49.  
  50.     void setAlarmColor( const QColor &color );
  51.     QColor alarmColor() const;
  52.  
  53.     void setBackgroundColor( const QColor &color );
  54.     QColor backgroundColor() const;
  55.  
  56.     void setFontSize( uint size );
  57.     uint fontSize() const;
  58.  
  59.     void setSensorColors( const QValueList<QColor> &list );
  60.     QValueList<QColor> sensorColors();
  61.  
  62.   private slots:
  63.     void editSensorColor();
  64.     void selectionChanged( QListBoxItem* );
  65.  
  66.   private:
  67.     KColorButton *mFirstForegroundColor;
  68.     KColorButton *mSecondForegroundColor;
  69.     KColorButton *mAlarmColor;
  70.     KColorButton *mBackgroundColor;
  71.  
  72.     QSpinBox *mFontSize;
  73.  
  74.     QListBox *mColorListBox;
  75.     QPushButton *mEditColorButton;
  76. };
  77.  
  78. #endif
  79.